package com.yu.utils;


import com.yu.model.entity.Patient;

public class PatientHolder {
    private static final ThreadLocal<Patient> tl = new ThreadLocal<>();

    public static void saveUser(Patient patient){
        tl.set(patient);
    }

    public static Patient getPatient(){
        return tl.get();
    }

    public static void removeUser(){
        tl.remove();
    }
}
